#include <iostream>
#include <string>

#include "source.hpp"
using namespace std;

int main() {
    ThreeDPoint pb1;
    int pb2_x, pb2_y, pb2_z, pb3_x, pb3_y, pb3_z;
    cin >> pb2_x >> pb2_y >> pb2_z;
    cin >> pb3_x >> pb3_y >> pb3_z;
    ThreeDPoint pb2(pb2_x, pb2_y, pb2_z), pb3(pb3_x, pb3_y, pb3_z);
    cout << "The coordinate of pb1 is (" << pb1.getX() << "," << pb1.getY() << "," << pb1.getZ() << ")" << endl;
    cout << "Distance between pb1 and pb2 is " << pb1.distance(pb2) << endl;
    cout << "Distance between pb1 and pb3 is " << pb1.distance(pb3) << endl;
    return 0;
}
